package com.banmao.mall.mapper;

import com.banmao.mall.model.pojo.Role;
import com.banmao.mall.model.vo.admin.system.RoleVO;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<RoleVO> selectRoleIdAndName();


    List<Role> selectRoleList(Integer page , Integer limit, String sort, String order, String name);

    Integer selectRoleTotal(Integer page, Integer limit, String sort, String order, String name);

    String selectRoleIdByUsername(String username);

}